<!-- NcInput后置按钮， text为按钮文字，还可传入style改变按钮样式 -->
<template>
  <div class="append-btn" @click="click">{{ text }}</div>
</template>

<script setup>
  const emit = defineEmits(['click']);
  defineProps({
    column: {
      type: Object,
      default: () => {}
    },
    text: {
      type: String,
      default: '选择'
    }
  });
  function click() {
    emit('click');
  }
</script>

<style lang="scss" scoped>
  .append-btn {
    background-color: #589cdf;
    border-radius: 3px;
    display: flex;
    color: #fff;
    padding: 0 5px;
  }
</style>
